home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 31 / PC Gamer IT CD 31 1-2.iso / DINKDEMO / dink101.exe / DINK / STORY / MAIN.C < prev    next >
C/C++ Source or Header  |  1997-10-01  |  2KB  |  61 lines

  1. //main.c run when dink is started
  2.  
  3. void main()
  4. {
  5. //let's init all our globals
  6.  
  7. // These globals are REQUIRED by dink.exe (it directly uses them)
  8.  
  9.   make_global_int("&exp",0);
  10.   make_global_int("&strength", 3);
  11.   make_global_int("&defense", 0);
  12.   make_global_int("&cur_weapon", 0);
  13.   make_global_int("&cur_magic", 0);
  14.   make_global_int("&gold", 0);
  15.   make_global_int("&magic", 0);
  16.   make_global_int("&magic_level", 0);
  17.   make_global_int("&vision", 0);
  18.   make_global_int("&result", 0);
  19.   make_global_int("&speed", 1);
  20.   make_global_int("&timing", 0);
  21.   make_global_int("&lifemax", 10); 
  22.   make_global_int("&life", 10);
  23.   make_global_int("&level", 1);
  24.   make_global_int("&player_map", 1);
  25.   make_global_int("&last_text", 0);
  26.   make_global_int("&update_status", 0);
  27.   make_global_int("&missile_target", 0);
  28.   make_global_int("&enemy_sprite", 0);
  29.   make_global_int("&magic_cost", 0);
  30.  
  31.   // These globals are stuff we added, which will all be saved with the player
  32.   // file
  33.  
  34.   make_global_int("&story", 0);
  35.   make_global_int("&old_womans_duck", 0);
  36.   make_global_int("&nuttree", 0);
  37.   make_global_int("&letter", 0);
  38.   make_global_int("&little_girl", 0);
  39.   make_global_int("&farmer_quest", 0);
  40.   make_global_int("&save_x", 0);
  41.   make_global_int("&save_y", 0);
  42.   make_global_int("&safe", 0);
  43.   make_global_int("&pig_story", 0);
  44.   make_global_int("&wizard_see", 0);
  45.   make_global_int("&gossip", 0);
  46.   make_global_int("&robbed", 0);
  47.   make_global_int("&dinklogo", 0);
  48.   make_global_int("&rock_placement", 0);
  49.   make_global_int("&boat", 0);
  50.  
  51.  
  52. //Let's preload that sprite that's been bugging the hell out of Pap
  53.   preload_seq(373);
  54.  
  55. //if run with -debug option this will be written to debug.txt.
  56.  
  57.  debug("Dink started. Time to fight for your right to party.");
  58. //playmidi("story.mid");
  59.  kill_this_task();
  60. }
  61.